<?php


namespace CbjCode\General\Library\Interfaces;


interface ModelInterface
{
    /**
     * 设置Schemas
     * @return mixed
     */
    public function setSchemas();

    /**
     * 分页数据
     * @param null $perPage 每页显示条数
     * @param string[] $columns
     * @param null $page
     * @param string $pageName
     * @return mixed
     */
    public function paginate($perPage = null, $columns = ['*'], $page = null, $pageName = 'page');
}